<form action="../../../nba_pool_v2/submit_results/{{ week.id }}/" method="post">
  {% csrf_token %}
  {% if game_list and week %}
  <table border="1">
    <tr>
      <td>Away</td>
      <td/>
      <td>Home</td>
      <td/>
    </tr>
    {% for game in game_list %}
    <tr>
      <td> {{game.away}} </td>
      <td> <input type="text"
		  name="away_{{game.id}}">
      </td>
      <td> {{game.home}}</td>
      <td> <input type="text"
		  name="home_{{game.id}}">
      </td>
    </tr>
    {% endfor %}
  </table>
  <input type="submit" value="submit"/>
  
{% else %}
<p>invalid input</p>
{% endif %}
